package com.dudu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public class User {

  @TableId(value = "user_id")
  private long userId;
  private String userCode;
  private String userPhone;
  private String username;
  private String password;
  private String userAvatar;
  private double userMileage;
  private java.sql.Timestamp createTime;
  private long userStatus;


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public String getUserCode() {
    return userCode;
  }

  public void setUserCode(String userCode) {
    this.userCode = userCode;
  }


  public String getUserPhone() {
    return userPhone;
  }

  public void setUserPhone(String userPhone) {
    this.userPhone = userPhone;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getUserAvatar() {
    return userAvatar;
  }

  public void setUserAvatar(String userAvatar) {
    this.userAvatar = userAvatar;
  }


  public double getUserMileage() {
    return userMileage;
  }

  public void setUserMileage(double userMileage) {
    this.userMileage = userMileage;
  }


  public java.sql.Timestamp getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.sql.Timestamp createTime) {
    this.createTime = createTime;
  }


  public long getUserStatus() {
    return userStatus;
  }

  public void setUserStatus(long userStatus) {
    this.userStatus = userStatus;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userCode='" + userCode + '\'' +
            ", userPhone='" + userPhone + '\'' +
            ", username='" + username + '\'' +
            ", password='" + password + '\'' +
            ", userAvatar='" + userAvatar + '\'' +
            ", userMileage=" + userMileage +
            ", createTime=" + createTime +
            ", userStatus=" + userStatus +
            '}';
  }
}
